home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Jotto2.so Folder / Jotto ][ ƒ / MSG Shell ƒ / msg sounds.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-10  |  1.5 KB  |  57 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg sounds.h
  4.  
  5. Purpose:    This is the header file for msg sounds.c
  6.  
  7.  
  8. Jotto ][ -=- a simple word game, revisited
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include <Sound.h>
  29.  
  30. #define NUM_SOUNDS        10
  31.  
  32. enum
  33. {
  34.     sound_keyclick = 1000,
  35.     sound_playword_good,
  36.     sound_badword,
  37.     sound_wingame,
  38.     sound_losegame,
  39.     sound_virgin,
  40.     sound_on,
  41.     sound_aboutMSG,
  42.     sound_fluff,
  43.     sound_bluffing
  44. };
  45.  
  46. extern    SndChannelPtr        myChannel;
  47. extern    Handle                MySounds[NUM_SOUNDS];
  48. extern    unsigned char        gSoundToggle;
  49. extern    Boolean                gSoundAvailable;
  50.  
  51. OSErr OpenTheSoundDevice(void);
  52. void CloseTheSoundDevice(void);
  53. pascal Boolean ProcOFilter(DialogPtr dialog, EventRecord *event, short *item);
  54. void InitSounds(void);
  55. void DoSound(short);
  56. void CloseSounds(void);
  57.